## Process this file with automake to produce Makefile.in
AM_CFLAGS=-g -Wall $(EXTRA_CFLAGS) 
#-DUSE_MQTT  -DUSE_LUA -DUSE_RADAR

bin_PROGRAMS = kc031srv modbustest writecmd 
kc031srv_INCLUDES = $(PSRLIB_INC) 
kc031srv_CFLAGS =   -I/usr/local/include/ \
					-ldl -lpthread -lm -lmosquitto -llua -lmodbus -g
#kc031srv_CFLAGS = -ldl 
kc031srv_SOURCES = ../../src/kc031service.c \
		../../src/ini.c ../../src/utils.c \
		../../src/xLogMessage.c \
		../../src/ringBuffer.c \
		../../src/mqtt.c \
		../../src/lua.c  \
		../../src/hqjg.c \
		../../src/aexudp.c \
		../../src/mt_timer.c \
		../../src/sm4.c \
		../../src/version.c \
		../../src/aexgpio.c \
		../../src/HeatingCtl.c \
		../../src/mod_gpio.c

kc031srv_LDADD = @LIBOBJS@  

modbustest_INCLUDES = $(PSRLIB_INC) 
modbustest_CFLAGS = -I/usr/local/include/ \
					-ldl -lpthread -lm -lmosquitto -llua -lmodbus -g
modbustest_SOURCES = ../../src/modbustest.c \
					../../src/utils.c \
					../../src/xLogMessage.c \
					../../src/mod_gpio.c


modbustest_LDADD = @LIBOBJS@  


writecmd_INCLUDES = $(PSRLIB_INC) 
writecmd_CFLAGS = -I/usr/local/include/ \
					-ldl -lpthread -lm -g
writecmd_SOURCES = ../../src/writecmd.c \
					../../src/utils.c \
					../../src/xLogMessage.c 


writecmd_LDADD = @LIBOBJS@  

